﻿#if NET4 || WINDOWS_PHONE

#region Assembly System.Windows.dll, v2.0.50727
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\System.Windows.dll
#endregion

using System;

namespace System.ComponentModel
{
    /// Summary:
    ///     Provides data for the System.ComponentModel.INotifyDataErrorInfo.ErrorsChanged
    ///     event.
    public sealed class DataErrorsChangedEventArgs : EventArgs
    {
        readonly string m_PropertyName;

        /// <summary>
        ///  Initializes a new instance of the System.ComponentModel.DataErrorsChangedEventArgs class.
        /// </summary>
        /// <param name="propertyName"></param>
        public DataErrorsChangedEventArgs(string propertyName)
        {
            m_PropertyName = propertyName;
        }

        /// <summary>
        ///     Gets the name of the property for which the errors changed, or null or System.String.Empty
        ///     if the errors affect multiple properties.
        /// </summary>
        public string PropertyName { get { return m_PropertyName; } }

    }
}

#endif
